<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core">

<!-- Utiliza o template padrao -->
<ui:composition template="/template_content.xhtml">
<ui:define name="style">
    <style>
    #leftA{
        width:166px; margin:325px 0 0 24px; padding:0; float:left; background:url(images/archivTable_bg.gif) repeat-y 0 0;
	}
    </style>
</ui:define>

<ui:define name="topo">
    <div class="build">
        <p>Bem vindo, <strong><h:outputText value="#{loginBean.usuarioLogado}" /></strong>!</p>
    </div>
</ui:define>
 <ui:define name="menu_direito">
    <ul>
        <li><a href="/restaurante/admin/home.xhtml" class="show"><h:outputText value="#{msg.home}"/></a></li>
        <li><a href="/restaurante/admin/pratos.xhtml"><h:outputText value="#{msg.pratos}"/></a></li>
        <li><a href="/restaurante/admin/chefes.xhtml"><h:outputText value="#{msg.chefes}"/></a></li>
        <li><a href="/restaurante/admin/promocoes.xhtml"><h:outputText value="#{msg.promocoes}"/></a></li>
        <li><a href="/restaurante/admin/eventos.xhtml"><h:outputText value="#{msg.eventos}"/></a></li>
        <li><a href="/restaurante/admin/contato.xhtml"><h:outputText value="#{msg.contato}"/></a></li>
    </ul>
</ui:define>
<ui:define name="rodape">
    <ul>
        <li><a href="/restaurante/admin/home.xhtml" class="show"><h:outputText value="#{msg.home}"/></a></li>
        <li><a href="/restaurante/admin/pratos.xhtml"><h:outputText value="#{msg.pratos}"/></a></li>
        <li><a href="/restaurante/admin/chefes.xhtml"><h:outputText value="#{msg.chefes}"/></a></li>
        <li><a href="/restaurante/admin/promocoes.xhtml"><h:outputText value="#{msg.promocoes}"/></a></li>
        <li><a href="/restaurante/admin/eventos.xhtml"><h:outputText value="#{msg.eventos}"/></a></li>
        <li><a href="/restaurante/admin/contato.xhtml" class="no"><h:outputText value="#{msg.contato}"/></a></li>
    </ul>
</ui:define>
<ui:define name="b_titulo_primario">Menu de</ui:define>
<ui:define name="b_titulo_secundario"> Administração</ui:define>

<ui:define name="b_conteudo">
                <p>Seleciona uma opção no menu abaixo</p>
                    <center>
                <h:form>
                    <h:panelGrid styleClass="vertical-menu-cell" columnClasses="optionList" columns="1" cellspacing="0" cellpadding="0">
                        <rich:dropDownMenu style="border:1px solid #704F01" value="#{msg['cliente']}"
                                   direction="bottom-left" jointPoint="tl">
                            <rich:menuItem value="#{msg['novo']}" action="#{cliente.novoCliente}">
                                <f:facet name="icon">
                                    <h:graphicImage value="/css/images/ico_add.gif" />
                                </f:facet>
                            </rich:menuItem>
                            
                            <rich:menuItem value="#{msg['listar']}" action="#{cliente.listarCliente}">
                                <f:facet name="icon">
                                    <h:graphicImage value="/css/images/ico_zoom.gif" />
                                </f:facet>
                            </rich:menuItem>
                        </rich:dropDownMenu>
                        <rich:dropDownMenu style="border:1px solid #704F01" value="#{msg['cardapio']}"
                                   direction="bottom-left" jointPoint="tl">
                            <rich:menuItem value="#{msg['novo']}" action="#{cardapio.novoCardapio}">
                                <f:facet name="icon">
                                <h:graphicImage value="/css/images/ico_add.gif" />
                                </f:facet>
                            </rich:menuItem>
                            <rich:menuItem value="#{msg['listar']}" action="#{cardapio.listarCardapio}">
                                <f:facet name="icon">
                                    <h:graphicImage value="/css/images/ico_zoom.gif" />
                                </f:facet>
                            </rich:menuItem>
                        </rich:dropDownMenu>
                        <rich:dropDownMenu style="border:1px solid #704F01" value="#{msg['funcionarios']}"
                                   direction="bottom-left" jointPoint="tl">
                            <rich:menuItem value="#{msg['novo']}" action="#{funcionario.novoFuncionario}">
                                <f:facet name="icon">
                                <h:graphicImage value="/css/images/ico_add.gif" />
                                </f:facet>
                            </rich:menuItem>
                            <rich:menuItem value="#{msg['listar']}" action="#{funcionario.listarFuncionarios}">
                                <f:facet name="icon">
                                    <h:graphicImage value="/css/images/ico_zoom.gif" />
                                </f:facet>
                            </rich:menuItem>
                        </rich:dropDownMenu>
                        <rich:dropDownMenu style="border:1px solid #704F01" value="#{msg['cargos']}"
                                    direction="bottom-left" jointPoint="tl">
                            <rich:menuItem value="#{msg['novo']}" action="#{cargo.novoCargo}">
                                <f:facet name="icon">
                                <h:graphicImage value="/css/images/ico_add.gif" />
                                </f:facet>
                            </rich:menuItem>
                            <rich:menuItem value="#{msg['listar']}" action="#{cargo.listarCargos}">
                                <f:facet name="icon">
                                    <h:graphicImage value="/css/images/ico_zoom.gif" />
                                </f:facet>
                            </rich:menuItem>
                        </rich:dropDownMenu>
                        <rich:dropDownMenu style="border:1px solid #704F01" value="#{msg['ingredientes']}"
                                    direction="bottom-left" jointPoint="tl">
                            <rich:menuItem value="#{msg['novo']}" action="#{ingrediente.novoIngrediente}">
                                <f:facet name="icon">
                                <h:graphicImage value="/css/images/ico_add.gif" />
                                </f:facet>
                            </rich:menuItem>
                            <rich:menuItem value="#{msg['listar']}" action="#{ingrediente.listarIngredientes}">
                                <f:facet name="icon">
                                    <h:graphicImage value="/css/images/ico_zoom.gif" />
                                </f:facet>
                            </rich:menuItem>
                        </rich:dropDownMenu>
                        <rich:dropDownMenu style="border:1px solid #704F01" value="#{msg['promocao']}"
                                   direction="bottom-left" jointPoint="tl">
                            <rich:menuItem value="#{msg['novo']}"  action="#{promocao.novoPromocao}">
                                <f:facet name="icon">
                                <h:graphicImage value="/css/images/ico_add.gif" />
                                </f:facet>
                            </rich:menuItem>
                            <rich:menuItem value="#{msg['listar']}" action="#{promocao.listarPromocao}">
                                <f:facet name="icon">
                                    <h:graphicImage value="/css/images/ico_zoom.gif" />
                                </f:facet>
                            </rich:menuItem>
                        </rich:dropDownMenu>
                        <rich:dropDownMenu style="border:1px solid #704F01" value="#{msg['eventos']}"
                                   direction="bottom-left" jointPoint="tl">
                            <rich:menuItem value="#{msg['novo']}" action="#{evento.novoEvento}">
                                <f:facet name="icon">
                                <h:graphicImage value="/css/images/ico_add.gif" />
                                </f:facet>
                            </rich:menuItem>
                            <rich:menuItem value="#{msg['listar']}" action="#{evento.listarEventos}">
                                <f:facet name="icon">
                                    <h:graphicImage value="/css/images/ico_zoom.gif" />
                                </f:facet>
                            </rich:menuItem>
                        </rich:dropDownMenu>
                    </h:panelGrid>
                    </h:form>
                </center>
        </ui:define>

</ui:composition>
</html>